import org.junit.Test;
import utils.Mysql;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Gstsb {
    @Test
    public void gst() throws SQLException {
        String sql="select * from student";
        ResultSet rs = Mysql.getrs(sql);
        while (rs.next()){
            String sId = rs.getString("s_id");
            String sName = rs.getString("s_name");
            String sBirth = rs.getString("s_birth");
            String sSex = rs.getString("s_sex");
            System.out.println(sId+"\t"+sName+"\t"+sBirth+"\t"+sSex);
        }

    }

}
